package com.daoeping.domain;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * Cop_companyinfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "cop_companyinfo", catalog = "daoeping")
public class Cop_companyinfo implements java.io.Serializable {

	// Fields

	private Integer id;
	private String name;
	private Integer scaleId;
	private String address;
	private String description;
	private Cop_companyuser cop_companyuser;
	private Bsc_industry bsc_industry;
	private Bzn_jobdescription bzn_jobdescription;
	private Cop_type cop_type;
	private Cop_group cop_group;

	// Constructors


	/** default constructor */
	public Cop_companyinfo() {
	}


	/** minimal constructor */
	public Cop_companyinfo(String name, Bsc_industry bsc_industry) {
		this.name = name;
		this.bsc_industry = bsc_industry;
	}

	/** full constructor */
	public Cop_companyinfo(String name, Bsc_industry bsc_industry, Integer scaleId,
			String address, String description, Cop_type cop_type,Bzn_jobdescription bzn_jobdescription) {
		this.name = name;
		this.bsc_industry = bsc_industry;
		this.scaleId = scaleId;
		this.address = address;
		this.description = description;
		this.cop_type = cop_type;
		this.bzn_jobdescription = bzn_jobdescription;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "name", nullable = false, length = 200)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@ManyToOne
	@JoinColumn(name="industry_id")
	public Bsc_industry getBsc_industry() {
		return bsc_industry;
	}

	public void setBsc_industry(Bsc_industry bsc_industry) {
		this.bsc_industry = bsc_industry;
	}

	@Column(name = "scale_id")
	public Integer getScaleId() {
		return this.scaleId;
	}

	public void setScaleId(Integer scaleId) {
		this.scaleId = scaleId;
	}

	@Column(name = "address", length = 200)
	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Column(name = "description", length = 4000)
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@OneToMany(cascade=CascadeType.ALL,mappedBy="Cop_companyinfo")
	public void setCop_companyuser(Cop_companyuser cop_companyuser) {
		this.cop_companyuser = cop_companyuser;
	}

	@OneToMany(cascade=CascadeType.ALL,mappedBy="Cop_companyinfo")
	public void setBzn_jobdescription(Bzn_jobdescription bzn_jobdescription) {
		this.bzn_jobdescription = bzn_jobdescription;
	}

	@ManyToOne
	@JoinColumn(name = "cop_type_id")
	public Cop_type getCop_type() {
		return cop_type;
	}
	
	public void setCop_type(Cop_type cop_type) {
		this.cop_type = cop_type;
	}

	@OneToMany(cascade=CascadeType.ALL,mappedBy="Cop_companyinfo")
	public void setCop_group(Cop_group cop_group) {
		this.cop_group = cop_group;
	}


}